You are here

public function FlaggingCollection::setName in Flag Lists 4.0.x

Same name and namespace in other branches
  1. 8 src/Entity/FlaggingCollection.php \Drupal\flag_lists\Entity\FlaggingCollection::setName()

Sets the Flagging collection name.

Parameters

string $name: The Flagging collection name.

Return value

\Drupal\flag_lists\Entity\FlaggingCollectionInterface The called Flagging collection entity.

Overrides FlaggingCollectionInterface::setName

File

src/Entity/FlaggingCollection.php, line 218

Class

FlaggingCollection
Defines the Flagging collection entity.

Namespace

Drupal\flag_lists\Entity

Code

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