コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function getConfiguration()
 {
     $configuration = parent::getConfiguration();
     // We need to update the configuration in case conditions have been added or
     // changed.
     $configuration['conditions'] = [];
     foreach ($this->conditions as $uuid => $condition) {
         $configuration['conditions'][$uuid] = $condition->getConfiguration();
     }
     return $configuration;
 }
コード例 #2
0
ファイル: Rule.php プロジェクト: DrupalTV/DrupalTV
 /**
  * {@inheritdoc}
  */
 public function getConfiguration()
 {
     $configuration = parent::getConfiguration();
     // We need to update the configuration in case actions/conditions have been
     // added or changed.
     $configuration['conditions'] = $this->conditions->getConfiguration();
     $configuration['actions'] = $this->actions->getConfiguration();
     return $configuration;
 }