You are here

public function MenuPositionRule::getConditions in Menu Position 8

Returns the content type conditions.

Return value

array The array of configuration for content types.

Overrides MenuPositionRuleInterface::getConditions

2 calls to MenuPositionRule::getConditions()
MenuPositionRule::getPluginCollections in src/Entity/MenuPositionRule.php
Gets the plugin collections used by this object.
MenuPositionRule::isActive in src/Entity/MenuPositionRule.php
Evaluates all conditions attached to this rule and determines if this rule is "active" or not.

File

src/Entity/MenuPositionRule.php, line 155

Class

MenuPositionRule
Defines the MenuPositionRule entity.

Namespace

Drupal\menu_position\Entity

Code

public function getConditions() {
  if (!isset($this->conditionCollection)) {
    $this->conditionCollection = new ConditionPluginCollection($this
      ->conditionPluginManager(), $this
      ->get('conditions'));
  }
  return $this->conditionCollection;
}