Created
December 16, 2015 19:11
-
-
Save juampynr/094d97590c8e24f0e11b to your computer and use it in GitHub Desktop.
Metatag Defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Contains \Drupal\metatag\Entity\MetatagDefaults. | |
*/ | |
namespace Drupal\metatag\Entity; | |
use Drupal\Core\Config\Entity\ConfigEntityBase; | |
use Drupal\metatag\MetatagDefaultsInterface; | |
/** | |
* Defines the Metatag Defaults entity. | |
* | |
* @ConfigEntityType( | |
* id = "metatag_defaults", | |
* label = @Translation("Metatag Defaults"), | |
* handlers = { | |
* "list_builder" = "Drupal\metatag\MetatagDefaultsListBuilder", | |
* "form" = { | |
* "add" = "Drupal\metatag\Form\MetatagDefaultsForm", | |
* "edit" = "Drupal\metatag\Form\MetatagDefaultsForm", | |
* "delete" = "Drupal\metatag\Form\MetatagDefaultsDeleteForm" | |
* } | |
* }, | |
* config_prefix = "metatag_defaults", | |
* admin_permission = "administer site configuration", | |
* entity_keys = { | |
* "id" = "id", | |
* "label" = "label" | |
* }, | |
* links = { | |
* "canonical" = "/admin/structure/metatag_defaults/{metatag_defaults}", | |
* "edit-form" = "/admin/structure/metatag_defaults/{metatag_defaults}/edit", | |
* "delete-form" = "/admin/structure/metatag_defaults/{metatag_defaults}/delete", | |
* "collection" = "/admin/structure/visibility_group" | |
* } | |
* ) | |
*/ | |
class MetatagDefaults extends ConfigEntityBase implements MetatagDefaultsInterface { | |
/** | |
* The Metatag Defaults ID. | |
* | |
* @var string | |
*/ | |
protected $id; | |
/** | |
* The Metatag Defaults label. | |
* | |
* @var string | |
*/ | |
protected $label; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment