public function ContentEntityBase::setValidationRequired in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::setValidationRequired()
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 390 - Contains \Drupal\Core\Entity\ContentEntityBase.
Class
- ContentEntityBase
- Implements Entity Field API specific enhancements to the Entity class.
Namespace
Drupal\Core\EntityCode
public function setValidationRequired($required) {
$this->validationRequired = $required;
return $this;
}