Exemple #1
0
 /**
  * @param ScopeInterface $scope
  * @return array
  */
 protected function getContextVariables(ScopeInterface $scope)
 {
     $data[] = $scope->getValue();
     if ($scope->getFallback()) {
         $data = array_merge($data, $this->getContextVariables($scope->getFallback()));
     }
     return $data;
 }
 /**
  * @param ScopeInterface $scope
  * @param AbstractAttribute $attribute
  * @param bool $useDefault
  * @return string
  * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  */
 protected function getScopeValue(ScopeInterface $scope, AbstractAttribute $attribute, $useDefault = false)
 {
     if ($useDefault && $scope->getFallback()) {
         return $this->getScopeValue($scope->getFallback(), $attribute, $useDefault);
     }
     return $scope->getValue();
 }
 /**
  * @param ScopeInterface $scope
  * @return array
  */
 protected function getContextVariables(ScopeInterface $scope)
 {
     $data[] = $scope->getValue();
     return $data;
 }