Search for hasField

  1. Search 7.x for hasField
  2. Search 9.5.x for hasField
  3. Search 8.9.x for hasField
  4. Search 11.x for hasField
  5. Other projects
Title Object type File name Summary
ContentEntityBase::hasField function core/lib/Drupal/Core/Entity/ContentEntityBase.php Determines whether the entity has a field with the given name.
ContentEntityStorageBase::hasFieldValueChanged function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php Checks whether the field values changed compared to the original entity.
EntityHasFieldConstraint class core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php Checks if a value is an entity that has a specific field.
EntityHasFieldConstraint.php file core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php
EntityHasFieldConstraint::$field_name property core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php The field name option.
EntityHasFieldConstraint::$message property core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php The default violation message.
EntityHasFieldConstraint::$notFieldableMessage property core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php The violation message for non-fieldable entities.
EntityHasFieldConstraint::getDefaultOption function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php @todo Add method return type declaration.
EntityHasFieldConstraint::getRequiredOptions function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php @todo Add method return type declaration.
EntityHasFieldConstraintValidator class core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraintValidator.php Validates the EntityHasField constraint.
EntityHasFieldConstraintValidator.php file core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraintValidator.php
EntityHasFieldConstraintValidator::validate function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraintValidator.php
FieldableEntityInterface::hasField function core/lib/Drupal/Core/Entity/FieldableEntityInterface.php Determines whether the entity has a field with the given name.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.