Shortcut::getWeight

public Shortcut::getWeight()

Returns the weight among shortcuts with the same depth.

Return value

int The shortcut weight.

Overrides ShortcutInterface::getWeight

File

core/modules/shortcut/src/Entity/Shortcut.php, line 70

Class

Shortcut
Defines the shortcut entity class.

Namespace

Drupal\shortcut\Entity

Code

public function getWeight() {
  return $this->get('weight')->value;
}
doc_Drupal
2016-10-29 09:42:25
Comments
Leave a Comment

Please login to continue.