TweetbuttonVerticalFormatter.php in Tweet Button 8
Contains \Drupal\tweetbutton\Plugin\field\formatter\TweetbuttonVerticalFormatter.
File
lib/Drupal/tweetbutton/Plugin/Field/FieldFormatter/TweetbuttonVerticalFormatter.phpView source
<?php
/**
* @file
* Contains \Drupal\tweetbutton\Plugin\field\formatter\TweetbuttonVerticalFormatter.
*/
namespace Drupal\tweetbutton\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FormatterBase;
use Drupal\Core\Field\FieldItemListInterface;
/**
* Plugin implementation of the 'telephone_link' formatter.
*
* @FieldFormatter(
* id = "tweetbutton_formatter_vertical",
* label = @Translation("Tweetbutton style vertical"),
* field_types = {
* "tweetbutton"
* }
* )
*/
class TweetbuttonVerticalFormatter extends FormatterBase {
/**
* {@inheritdoc}
*/
public static function defaultSettings() {
return array() + parent::defaultSettings();
}
/**
* {@inheritdoc}
*/
public function settingsForm(array $form, array &$form_state) {
$elements = array();
return $elements;
}
/**
* {@inheritdoc}
*/
public function settingsSummary() {
$summary = array();
$settings = $this
->getSettings();
return $summary;
}
/**
* {@inheritdoc}
*/
public function viewElements(FieldItemListInterface $items) {
$element = array();
return $element;
}
}
Classes
Name | Description |
---|---|
TweetbuttonVerticalFormatter | Plugin implementation of the 'telephone_link' formatter. |