You are here

public function SocialSimpleGeneratorInterface::getTitle in Social simple 8

Same name and namespace in other branches
  1. 2.0.x src/SocialSimpleGeneratorInterface.php \Drupal\social_simple\SocialSimpleGeneratorInterface::getTitle()

Get the title to share.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity if provided.

Return value

string $title The entity title or page title to share.

1 method overrides SocialSimpleGeneratorInterface::getTitle()
SocialSimpleGenerator::getTitle in src/SocialSimpleGenerator.php
Get the title to share.

File

src/SocialSimpleGeneratorInterface.php, line 77

Class

SocialSimpleGeneratorInterface
Interface SocialSimpleGeneratorInterface.

Namespace

Drupal\social_simple

Code

public function getTitle(EntityInterface $entity = NULL);