PostType.php in Open Social 8.6
Same filename and directory in other branches
- 8.9 modules/social_features/social_post/src/Entity/PostType.php
- 8 modules/social_features/social_post/src/Entity/PostType.php
- 8.2 modules/social_features/social_post/src/Entity/PostType.php
- 8.3 modules/social_features/social_post/src/Entity/PostType.php
- 8.4 modules/social_features/social_post/src/Entity/PostType.php
- 8.5 modules/social_features/social_post/src/Entity/PostType.php
- 8.7 modules/social_features/social_post/src/Entity/PostType.php
- 8.8 modules/social_features/social_post/src/Entity/PostType.php
- 10.3.x modules/social_features/social_post/src/Entity/PostType.php
- 10.0.x modules/social_features/social_post/src/Entity/PostType.php
- 10.1.x modules/social_features/social_post/src/Entity/PostType.php
- 10.2.x modules/social_features/social_post/src/Entity/PostType.php
Namespace
Drupal\social_post\EntityFile
modules/social_features/social_post/src/Entity/PostType.phpView source
<?php
namespace Drupal\social_post\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
/**
* Defines the Post type entity.
*
* @ConfigEntityType(
* id = "post_type",
* label = @Translation("Post type"),
* handlers = {
* "list_builder" = "Drupal\social_post\PostTypeListBuilder",
* "form" = {
* "add" = "Drupal\social_post\Form\PostTypeForm",
* "edit" = "Drupal\social_post\Form\PostTypeForm",
* "delete" = "Drupal\social_post\Form\PostTypeDeleteForm"
* },
* "route_provider" = {
* "html" = "Drupal\social_post\PostTypeHtmlRouteProvider",
* },
* },
* config_prefix = "post_type",
* admin_permission = "administer post entities",
* bundle_of = "post",
* entity_keys = {
* "id" = "id",
* "label" = "label",
* "uuid" = "uuid"
* },
* links = {
* "canonical" = "/admin/structure/post/{post_type}",
* "add-form" = "/admin/structure/post/add",
* "edit-form" = "/admin/structure/post/{post_type}/edit",
* "delete-form" = "/admin/structure/post/{post_type}/delete",
* "collection" = "/admin/structure/post"
* }
* )
*/
class PostType extends ConfigEntityBundleBase implements PostTypeInterface {
/**
* The Post type ID.
*
* @var string
*/
protected $id;
/**
* The Post type label.
*
* @var string
*/
protected $label;
}