at path:
ROOT
/
wp-content
/
plugins
/
elementor
/
data
/
base
/
sub-endpoint.php
run:
R
W
Run
processor
DIR
2026-04-14 05:34:14
R
W
Run
controller.php
8.1 KB
2026-04-14 05:34:14
R
W
Run
Delete
Rename
endpoint.php
9.1 KB
2026-04-14 05:34:14
R
W
Run
Delete
Rename
processor.php
444 By
2026-04-14 05:34:14
R
W
Run
Delete
Rename
sub-endpoint.php
760 By
2026-04-14 05:34:14
R
W
Run
Delete
Rename
error_log
up
📄
sub-endpoint.php
Save
<?php namespace Elementor\Data\Base; /** * TODO: Add test. */ abstract class SubEndpoint extends Endpoint { /** * @var Endpoint */ protected $parent_endpoint; /** * @var string */ protected $parent_route = ''; public function __construct( $parent_route, $parent_endpoint ) { $this->parent_endpoint = $parent_endpoint; $this->parent_route = $parent_route; parent::__construct( $this->parent_endpoint->controller ); } /** * Get parent route. * * @return \Elementor\Data\Base\Endpoint */ public function get_parent() { return $this->parent_endpoint; } public function get_base_route() { $controller_name = $this->controller->get_name(); return $controller_name . '/' . $this->parent_route . $this->get_name(); } }