You are here

public function MediaGallery::setTitle in Media Gallery 8

Sets the media gallery title.

Parameters

string $title: The media gallery title.

Return value

\Drupal\media_gallery\MediaGalleryInterface The called media gallery entity.

Overrides MediaGalleryInterface::setTitle

File

src/Entity/MediaGallery.php, line 81

Class

MediaGallery
Defines the media gallery entity class.

Namespace

Drupal\media_gallery\Entity

Code

public function setTitle($title) {
  $this
    ->set('title', $title);
  return $this;
}