You are here

public function FieldValidationRuleSet::setName in Field Validation 8

Sets the name of the FieldValidationRuleSet.

Parameters

string $name: The name of the FieldValidationRuleSet.

Return value

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

Overrides FieldValidationRuleSetInterface::setName

File

src/Entity/FieldValidationRuleSet.php, line 182

Class

FieldValidationRuleSet
Defines a field validation rule set configuration entity.

Namespace

Drupal\field_validation\Entity

Code

public function setName($name) {
  $this
    ->set('name', $name);
  return $this;
}