You are here

public function RateWidget::isLocked in Rate 8.2

Check if the rate widget is new.

Return value

bool Returns TRUE is the rate widget is new.

Overrides RateWidgetInterface::isLocked

File

src/Entity/RateWidget.php, line 160

Class

RateWidget
Defines the Rate Widget configuration entity.

Namespace

Drupal\rate\Entity

Code

public function isLocked() {
  return !$this
    ->isNew();
}