interface EntityFieldCompareTypeInterface in Entity Field Condition 2.0.x
Define the entity field compare type interface.
Hierarchy
- interface \Drupal\Core\Plugin\ContainerFactoryPluginInterface; interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Core\Plugin\PluginFormInterface
- interface \Drupal\entity_field_condition\Contracts\EntityFieldCompareTypeInterface
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\ContractsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 14 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 15 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 15 |
ContainerFactoryPluginInterface:: |
public static | function | Creates an instance of the plugin. | 120 |
EntityFieldCompareTypeInterface:: |
public | function | Evaluate the entity field value. | 2 |
PluginFormInterface:: |
public | function | Form constructor. | 37 |
PluginFormInterface:: |
public | function | Form submission handler. | 32 |
PluginFormInterface:: |
public | function | Form validation handler. | 18 |