interface PrevNextApiInterface in Previous/Next API 8.2
Interface for PrevNextApi.
Hierarchy
- interface \Drupal\prev_next\PrevNextApiInterface
Expanded class hierarchy of PrevNextApiInterface
All classes that implement PrevNextApiInterface
File
- src/
PrevNextApiInterface.php, line 8
Namespace
Drupal\prev_nextView source
interface PrevNextApiInterface {
/**
* Create the prev_next records.
*
* @param int $entity_id
* Entity id.
* @param string $bundle_name
* Entity type.
*/
public function add($entity_id, $bundle_name);
/**
* Update the prev_next records.
*
* @param int $entity_id
* Entity id.
* @param string $bundle_name
* Entity type.
*/
public function update($entity_id, $bundle_name);
/**
* Remove the prev_next records.
*
* @param int $entity_id
* Entity id.
* @param string $bundle_name
* Entity type.
*/
public function remove($entity_id, $bundle_name);
/**
* Helper function to return a SQL clause for bundles to be indexed.
*
* @param string $bundle_name
* The indexing criteria for the type of entity to query for.
* @param object $bundle
* Prev/Next bundle configuration.
*
* @return string
* Returns the sql string.
*/
public function bundlesSql($bundle_name, $bundle);
/**
* Helper function to update other entities pointing to a particular entity.
*
* @param int $entity_id
* Entity id.
* @param string $bundle_name
* Entity type.
*/
public function modifyPointingEntities($entity_id, $bundle_name);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PrevNextApiInterface:: |
public | function | Create the prev_next records. | 1 |
PrevNextApiInterface:: |
public | function | Helper function to return a SQL clause for bundles to be indexed. | 1 |
PrevNextApiInterface:: |
public | function | Helper function to update other entities pointing to a particular entity. | 1 |
PrevNextApiInterface:: |
public | function | Remove the prev_next records. | 1 |
PrevNextApiInterface:: |
public | function | Update the prev_next records. | 1 |