ContentEntityBase::setValidationRequired

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;
}
doc_Drupal
2016-10-29 08:57:01
Comments
Leave a Comment

Please login to continue.