You are here

public function FieldValidationRuleSet::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.

Overrides FieldValidationRuleSetInterface::setAttachedEntityType

File

src/Entity/FieldValidationRuleSet.php, line 207

Class

FieldValidationRuleSet
Defines a field validation rule set configuration entity.

Namespace

Drupal\field_validation\Entity

Code

public function setAttachedEntityType($entity_type) {
  $this
    ->set('entity_type', $entity_type);
  return $this;
}