- <?php
- * @file
- * Test entity classes.
- */
-
- * Test class for the test_cacheable entity type.
- */
- class TestDisableCache extends Entity {
- public $id;
-
-
- * Implements EntityInterface::id().
- */
- public function id() {
- return $this->id;
- }
-
-
- * Implements EntityInterface::entityType().
- */
- public function entityType() {
- return 'test_disable_cache';
- }
-
-
- * Implements EntityInterface::label().
- */
- public function label() {
- return 'label';
- }
-
-
- * Implements EntityInterface::uri().
- */
- public function uri() {
- return array(
- 'path' => 'test_disable_cache/' . $this->id,
- );
- }
-
-
- * Implements EntityInterface::createAccess().
- */
- public static function createAccess($bundle = NULL, $account = NULL) {
- return NULL;
- }
-
-
- * Implements EntityInterface::access().
- */
- public function access($op, $account = NULL) {
- return NULL;
- }
- }