You are here

public function FieldValidationRuleSetInterface::setAttachedEntityType in Field Validation 8

Sets the entity_type of the FieldValidationRuleSet.

Parameters

string $entity_type: The entity type of the FieldValidationRuleSet.

Return value

\Drupal\field_validation\FieldValidationRuleSetInterface The class instance this method is called on.

1 method overrides FieldValidationRuleSetInterface::setAttachedEntityType()
FieldValidationRuleSet::setAttachedEntityType in src/Entity/FieldValidationRuleSet.php
Sets the entity_type of the FieldValidationRuleSet.

File

src/FieldValidationRuleSetInterface.php, line 91

Class

FieldValidationRuleSetInterface
Provides an interface defining a FieldValidationRuleSet entity.

Namespace

Drupal\field_validation

Code

public function setAttachedEntityType($entity_type);