You are here

function IpPosts::remove in IP address manager 8.2

Remove records in the ip_posts table for a certain entity.

File

src/IpPosts.php, line 59
Contains Drupal\ip\IpPosts

Class

IpPosts

Namespace

Drupal\ip

Code

function remove() {
  return $this->connection
    ->delete('ip_posts')
    ->condition('type', $this->entity
    ->getEntityTypeId())
    ->condition('id', $this->entity
    ->id())
    ->execute();
}