TweetbuttonNoneFormatter.php in Tweet Button 8
Contains \Drupal\tweetbutton\Plugin\field\formatter\TweetbuttonNoneFormatter.
File
lib/Drupal/tweetbutton/Plugin/Field/FieldFormatter/TweetbuttonNoneFormatter.phpView source
<?php
/**
* @file
* Contains \Drupal\tweetbutton\Plugin\field\formatter\TweetbuttonNoneFormatter.
*/
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_none",
* label = @Translation("Tweetbutton style none"),
* field_types = {
* "tweetbutton"
* }
* )
*/
class TweetbuttonNoneFormatter 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 |
---|---|
TweetbuttonNoneFormatter | Plugin implementation of the 'telephone_link' formatter. |