Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542
This commit is contained in:
parent
3b2511d96d
commit
81ccda77eb
2155 changed files with 54307 additions and 46870 deletions
|
@ -53,7 +53,9 @@ use Drupal\user\UserInterface;
|
|||
* "bundle" = "type",
|
||||
* "label" = "title",
|
||||
* "langcode" = "langcode",
|
||||
* "uuid" = "uuid"
|
||||
* "uuid" = "uuid",
|
||||
* "status" = "status",
|
||||
* "uid" = "uid",
|
||||
* },
|
||||
* bundle_entity_type = "node_type",
|
||||
* field_ui_base_route = "entity.node_type.edit_form",
|
||||
|
@ -72,6 +74,17 @@ class Node extends ContentEntityBase implements NodeInterface {
|
|||
|
||||
use EntityChangedTrait;
|
||||
|
||||
/**
|
||||
* Whether the node is being previewed or not.
|
||||
*
|
||||
* The variable is set to public as it will give a considerable performance
|
||||
* improvement. See https://www.drupal.org/node/2498919.
|
||||
*
|
||||
* @var true|null
|
||||
* TRUE if the node is being previewed and NULL if it is not.
|
||||
*/
|
||||
public $in_preview = NULL;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
@ -258,7 +271,7 @@ class Node extends ContentEntityBase implements NodeInterface {
|
|||
* {@inheritdoc}
|
||||
*/
|
||||
public function isPublished() {
|
||||
return (bool) $this->get('status')->value;
|
||||
return (bool) $this->getEntityKey('status');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -280,7 +293,7 @@ class Node extends ContentEntityBase implements NodeInterface {
|
|||
* {@inheritdoc}
|
||||
*/
|
||||
public function getOwnerId() {
|
||||
return $this->get('uid')->target_id;
|
||||
return $this->getEntityKey('uid');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue