public function SocialSimpleGeneratorInterface::getTitle in Social simple 2.0.x
Same name and namespace in other branches
- 8 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_simpleCode
public function getTitle(EntityInterface $entity = NULL);