ArticleInterface.php 635 Bytes
Newer Older
Mateu Aguiló Bosch's avatar
Mateu Aguiló Bosch committed
1
2
3
4
<?php

/**
 * @file
5
 * Contains \Drupal\typed_entity_example\TypedEntity\Node\ArticleInterface.
Mateu Aguiló Bosch's avatar
Mateu Aguiló Bosch committed
6
7
 */

8
namespace Drupal\typed_entity_example\TypedEntity\Node;
Mateu Aguiló Bosch's avatar
Mateu Aguiló Bosch committed
9
10

use Drupal\typed_entity\TypedEntity\TypedEntityInterface;
11
use Drupal\typed_entity_example\TypedEntity\TypedNodeInterface;
Mateu Aguiló Bosch's avatar
Mateu Aguiló Bosch committed
12

13
interface ArticleInterface extends TypedNodeInterface {
Mateu Aguiló Bosch's avatar
Mateu Aguiló Bosch committed
14
15

  /**
Pablo López's avatar
Pablo López committed
16
   * Gets the image of the node.
Mateu Aguiló Bosch's avatar
Mateu Aguiló Bosch committed
17
18
   *
   * @return TypedEntityInterface
Pablo López's avatar
Pablo López committed
19
   *   The fully loaded image object.
Mateu Aguiló Bosch's avatar
Mateu Aguiló Bosch committed
20
21
22
   */
  public function getImage();

23
24
25
26
27
28
29
30
  /**
   * Generates a message suited for logging.
   *
   * @return string
   *   The message.
   */
  public function getLoggingMessage();

Mateu Aguiló Bosch's avatar
Mateu Aguiló Bosch committed
31
}