public ContentEntityBase::setValidationRequired($required)
Sets whether entity validation is required before saving the entity.
Parameters
bool $required: TRUE if validation is required, FALSE otherwise.
Return value
$this
Overrides FieldableEntityInterface::setValidationRequired
File
- core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 387
Class
- ContentEntityBase
- Implements Entity Field API specific enhancements to the Entity class.
Namespace
Drupal\Core\Entity
Code
public function setValidationRequired($required) { $this->validationRequired = $required; return $this; }
Please login to continue.