You are here

public function Breakpoint::isEditable in Breakpoints 8

Is the breakpoint editable.

Return value

boolean

File

lib/Drupal/breakpoint/Breakpoint.php, line 278
Definition of Drupal\breakpoint\Breakpoint.

Class

Breakpoint
Defines the Breakpoint entity.

Namespace

Drupal\breakpoint

Code

public function isEditable() {

  // Custom breakpoints are always editable.
  if ($this->sourceType == Breakpoint::SOURCE_TYPE_CUSTOM) {
    return TRUE;
  }

  // Overridden breakpoints are editable.
  if ($this->overridden) {
    return TRUE;
  }
  return FALSE;
}