Issue #3327974 by Lendude, ExTexan: The $entity_type property is protected, so fix views.api.php sample code to use a getter (cherry picked from commit bc41ac89)