You are here

interface EntityFieldCompareTypeInterface in Entity Field Condition 2.0.x

Define the entity field compare type interface.

Hierarchy

Expanded class hierarchy of EntityFieldCompareTypeInterface

All classes that implement EntityFieldCompareTypeInterface

3 files declare their use of EntityFieldCompareTypeInterface
EntityField.php in src/Plugin/Condition/EntityField.php
EntityFieldCompareTypeManager.php in src/EntityFieldCompareTypeManager.php
EntityFieldCompareTypePluginBase.php in src/Plugin/EntityFieldCondition/CompareType/EntityFieldCompareTypePluginBase.php

File

src/Contracts/EntityFieldCompareTypeInterface.php, line 15

Namespace

Drupal\entity_field_condition\Contracts
View source
interface EntityFieldCompareTypeInterface extends ContainerFactoryPluginInterface, ConfigurableInterface, PluginFormInterface {

  /**
   * Evaluate the entity field value.
   *
   * @param \Drupal\Core\Entity\ContentEntityInterface $entity
   *   The entity instance.
   * @param string $field_name
   *   The entity field name.
   *
   * @return bool
   *   Return TRUE if the field value compare is valid, otherwise FALSE.
   */
  public function evaluate(ContentEntityInterface $entity, string $field_name) : bool;

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigurableInterface::defaultConfiguration public function Gets default configuration for this plugin. 14
ConfigurableInterface::getConfiguration public function Gets this plugin's configuration. 15
ConfigurableInterface::setConfiguration public function Sets the configuration for this plugin instance. 15
ContainerFactoryPluginInterface::create public static function Creates an instance of the plugin. 120
EntityFieldCompareTypeInterface::evaluate public function Evaluate the entity field value. 2
PluginFormInterface::buildConfigurationForm public function Form constructor. 37
PluginFormInterface::submitConfigurationForm public function Form submission handler. 32
PluginFormInterface::validateConfigurationForm public function Form validation handler. 18