You are here

public function FieldValidationRuleSet::setAttachedBundle in Field Validation 8

Sets the bundle of the FieldValidationRuleSet.

Parameters

string $bundle: The bundle of the FieldValidationRuleSet.

Return value

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

Overrides FieldValidationRuleSetInterface::setAttachedBundle

File

src/Entity/FieldValidationRuleSet.php, line 222

Class

FieldValidationRuleSet
Defines a field validation rule set configuration entity.

Namespace

Drupal\field_validation\Entity

Code

public function setAttachedBundle($bundle) {
  $this
    ->set('bundle', $bundle);
  return $this;
}