You are here

private function AddThis::getAttributeTitle in AddThis 7.4

Transform the entity title to a attribute.

1 call to AddThis::getAttributeTitle()
AddThis::getAddThisAttributesMarkup in classes/AddThis.php

File

classes/AddThis.php, line 388
An AddThis-class.

Class

AddThis
@file An AddThis-class.

Code

private function getAttributeTitle($entity) {
  if (isset($entity->title)) {
    return array(
      self::TITLE_ATTRIBUTE => $entity->title . ' - ' . variable_get('site_name'),
    );
  }
  return array();
}